package com.allwees.bs.c.module.user.dao;

import com.allwees.bs.c.module.user.entity.UserPointEntity;
import com.allwees.core.dao.mybatis.dao.BaseDao;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserPointDao extends BaseDao<UserPointEntity> {
    @Select({"SELECT * FROM usr_account_point s WHERE s.user_uuid = #{userUuid}"})
    List<UserPointEntity> findAllByUserUuid(String userUuid);
    @Select({"DELETE FROM usr_account_point s WHERE s.user_uuid = #{userUuid}"})
    void deleteByUserUuid(String userUuid);
}
